<?php
include_once dirname(dirname(__FILE__)).'/config/configuration.php';

function open_connect() {
    global $db_host, $db_name, $db_pass, $db_user;
//    $con = mysqli_connect($db_host, $db_user, $db_pass, $db_name) or die("Can't connect to database");
    $con = new mysqli($db_host, $db_user, $db_pass, $db_name) or die("Can't connect to database");
    return $con;
}

function close_connect($connect) {
    mysqli_close($connect);
}